import requests


def __query_room_name__():
    # URL 地址
    url = 'http://10.10.80.200:7948/api/inf/eventmonitor/rollBackOrMergeSheet'
    # url = 'http://localhost:7944/api/eventmonitor/indicatorQuery/readRoomNameVarious'

    headers = {
        'Content-Type': 'application/json',  # 如果你发送的是JSON数据
        'combine-token': '12a805a7-d35f-47f3-a136-814d06682e15,76f9f1fc-130f-4b97-b517-1046dc855f2e'
    }

    # JSON 数据

    data = {
        "alarmId": "",
        "eventTime": "2024-12-18 09:37:01",
        "sheetNo": "GS-906-230619-00003",
        "opAlarmId": "",
        "opEventtime": "2024-12-18 09:37:01",
        "opSheetNo": "GS-906-230526-00010",
        "key_alarm_flag": "",
        "operateType": "1"
    }

    # 发送 POST 请求
    response = requests.post(url, json=data, headers=headers)

    # 打印响应的内容
    print(response.text)


if __name__ == '__main__':
    __query_room_name__()